// ResourceManager.h

#ifndef __IPHONE__
#ifndef _HELPER_ResourceManager_H_
#define _HELPER_ResourceManager_H_

#include <core/Singleton.hpp>
#include "IResourceManager.h"

namespace HELP
{
	class ResourceManager : public HELP::IResourceManager,
							public CORE::Singleton<ResourceManager>
	{
	public:


		// overrided APIs
		virtual bool IsLoadablePNG(const char * fileName, FILE **fp) const;
		virtual GFX::Texture * LoadPNGImage(const char * fileName);
		virtual FONT::BMFont * LoadBMFont( const char * pfileName );

		// common APIs


	protected:

		const int getBitsPerPixelFromFormat(int type);
	};
}

#define GlobalResourceManager HELP::ResourceManager::getInstance()

#endif // _HELPER_ResourceManager_H_
#endif // __IPHONE__